import store from '@/store'
export default {
  install(Vue) {
    Vue.mixin({
      computed: {
        checkState() {
          return store.state.info.checkState
        }
      },
      mounted() {
        store.dispatch('info/setCheckState', true).then(res => {

        })
      },
      methods: {
        changeState() {
          store.dispatch('info/setCheckState', true).then(res => {

          })
        }
      }
    })
  }

}
